package com.ezjie.ielts.task;

import java.util.HashMap;
import java.util.Map;

import android.content.Context;

import com.ezjie.ielts.core.http.HttpAPI;
import com.ezjie.ielts.core.http.HttpRequestCallBack;
import com.ezjie.ielts.core.http.ServerInterfaceDefinition;
import com.ezjie.ielts.util.WordHomeDataUtil;

public class WordNewTask {

	private Context context;

	public WordNewTask(Context context) {
		this.context = context;
	}

	/**
	 * 日历数据
	 * 
	 * @param httpRequestCallBack
	 */
	public void getWordNew(HttpRequestCallBack httpRequestCallBack) {
		Map<String, String> params = new HashMap<String, String>();
		params.put("time", WordHomeDataUtil.getWordUpdateTime(context));

		HttpAPI.getInstance(context).doGetRequest(ServerInterfaceDefinition.WORD_NEWS, params, httpRequestCallBack);
	}

}
